/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bancoDeDados;

import java.sql.SQLException;
import regraDeNegocio.RNUsuario;

/**
 *
 * @author Gean
 */
public class BDUsuario {
    
    public void insertBD(RNUsuario user) throws SQLException{
        Conexao c = new Conexao(); 
         c.insert("INSERT INTO usuario (nomeuser, cargo, login, senha, email, perfil) VALUES ('"+user.getNome()+"','"+user.getCargo()+"','"+
                 user.getLogin()+"','"+user.getSenha()+"','"+user.getEmail()+"','"+user.getPerfil()+"')");
    }
}
